#include "Core\NervusDebug.h"
#include "Core\CChrono.h"

#ifdef _DEBUG
namespace Nervus {
	stringstream* Debug::info = new stringstream();
	Core::Chrono* Debug::chrono = new Core::Chrono();



	Logger::Logger(){
		char execPath[MAX_PATH];
		GetModuleFileName(NULL, execPath, MAX_PATH);
		string exec(execPath);
		string::size_type pos = exec.find_last_of("\\/");
		exec = exec.substr(0, pos);
		exec.append("\\NervusLog.txt");
		mFileName = exec;

		mLogFile.open(mFileName);
		mLogFile.close();

		mChrono = new Core::Chrono();
	}


	//Static
	Logger* Logger::get(){
		return Logger::mLogger;
	}

	Logger* Logger::mLogger = new Logger();

}

#else 


#endif